
package com.zelix;

import java.io.*;
import java.util.HashMap;
import java.util.Vector;
import java.util.zip.*;


public class zx
{

    public static final int a;
    private String b;
    private Vector c;
    private static String z[];

    public zx(ZipFile zipfile, ZipEntry zipentry)
        throws IOException
    {
        super();
        InputStream inputstream;
        BufferedReader bufferedreader;
        boolean flag;
        flag = yx.d;
        c = new Vector();
        b = zipentry.getName().substring(a);
        inputstream = null;
        bufferedreader = null;
        inputstream = zipfile.getInputStream(zipentry);
        bufferedreader = oc.a(inputstream);
        String s;
        while((s = bufferedreader.readLine())!=null){
            int i = s.indexOf("#");
            if(i != -1){
                if(i > 0){
                    s = s.substring(0, i - 1);
                }
                else
                    s = "";
            }
            s = s.trim();
            if(s.length() >0)
                c.addElement(s);
        }

    }

    public void a(String s, HashMap hashmap)
    {
        String s1;
        int i;
        boolean flag;
        flag = yx.d;
        s1 = z[0] + b.trim() + z[1] + s + "'";
        i = 0;
        for (; i < c.size(); i++) {
            String s2 = lt.b((String) c.elementAt(i));
            mt mt = fh.a(s2);
            if (mt != null)
                hashmap.put(mt, s1);
        }
    }

    public void a(ZipOutputStream zipoutputstream, ly ly, boolean flag)
        throws IOException
    {
        rc rc1;
        PrintWriter printwriter;
        int i;
        boolean flag1;
        flag1 = yx.d;
        String s = b.replace('.', '/');
        String s1 = (String)px.a(s, ly);
        String s2 = s1.replace('/', '.');
        rc1 = new rc(zipoutputstream, z[2] + s2, flag);
        printwriter = new PrintWriter(rc1.a());
        i = 0;
        for(; i<c.size(); i++){
            String s3 = ((String)c.elementAt(i)).replace('.', '/');
        String s4 = (String)px.a(s3, ly);
        printwriter.println(s4.replace('/', '.'));
        }
            printwriter.flush();
            rc1.b();
            if(gs.b != 0)
                yx.d = !flag1;
    }

    private static String z(char ac[]) {
        for (int i = 0; i < ac.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x22;
                    break;
                case 1:
                    key = 38;
                    break;
                case 2:
                    key = 44;
                    break;
                case 3:
                    key = 54;
                    break;
                default:
                    key = 3;
                    break;
            }
            ac[i] ^= key;
        }
        return new String(ac).intern();
    }

    static 
    {

        String as[] = new String[3];
        as[0] = z("\005kibB\017obp,QC^@jAC_\031".toCharArray());
        as[1] = z("\005\006EX#\005".toCharArray());
        as[2] = z("ocxw.khj\031pGTZ_`GU\003".toCharArray());
        z = as;
        a = z[2].length();
    }
}
